﻿@using WebEntities
@model List<FW_MenuItem>

<ul class="navmenu">
    @{
        List<FW_Menu> menuList = ViewBag.MenuList as List<FW_Menu>;
        foreach (var menu in menuList)
        {
    <li>
        <a href="/aboutus" class="@(ViewBag.ActMenu == "aboutus" ? "act" : string.Empty)">@menu.MenuName</a>
        @{
            var query = Model.Where(c => c.MenuID == menu.MenuID);
            if (query.Count() > 0)
            {
                <div class="menuact"></div>
                <div class="submenubox" style="margin-left:-10px">
                <ul class="navsubmenu">
                @foreach (var mitem in query)
                {
                    <li><a href="@mitem.ItemUrl">ㆍ@(mitem.ItemName)</a></li>
                }
                </ul>
            </div>
            }
        }
    </li>
        }
    }
    @*
    <li>
        <a href="/aboutus" class="@(ViewBag.ActMenu == "aboutus" ? "act" : string.Empty)">关于我们</a>
        <div class="menuact"></div>
        <div class="submenubox" style="margin-left:-10px">
            <ul class="navsubmenu">
                <li><a href="/aboutus">ㆍ公司简介</a></li>
                <li><a href="/aboutus/honor">ㆍ荣誉资质</a></li>
                <li><a href="/aboutus/history">ㆍ发展历程</a></li>
                <li><a href="/aboutus/culture">ㆍ企业文化</a></li>
                <li><a href="/aboutus/employee">ㆍ员工风采</a></li>
            </ul>
        </div>
    </li>
    <li>
        <a href="/newsinfo" class="@(ViewBag.ActMenu == "newsinfo" ? "act" : string.Empty)">新闻资讯</a>
        <div class="menuact"></div>
        <div class="submenubox">
            <ul class="navsubmenu">
                <li><a href="/newsinfo">ㆍ公司新闻</a></li>
                <li><a href="/newsinfo/industry">ㆍ行业资讯</a></li>
            </ul>
        </div>
    </li>
    <li>
        <a href="/products" class="@(ViewBag.ActMenu == "products" ? "act" : string.Empty)">产品展厅</a>
        <div class="menuact"></div>
        <div class="submenubox" style="margin-left:-10px">
            <ul class="navsubmenu">
                <li><a href="/products">ㆍ精幼糖</a></li>
                <li><a href="/products">ㆍ组合类别</a></li>
                <li><a href="/products">ㆍ优质糖</a></li>
            </ul>
        </div>
    </li>
    <li>
        <a href="/sales" class="@(ViewBag.ActMenu == "sales" ? "act" : string.Empty)">营销网络</a>
        <div class="menuact"></div>
    </li>
    <li>
        <a href="/jobs" class="@(ViewBag.ActMenu == "jobs" ? "act" : string.Empty)">人才招聘</a>
        <div class="menuact"></div>
        <div class="submenubox" style="margin-left:-10px">
            <ul class="navsubmenu">
                <li><a href="/jobs/sense">ㆍ用人理念</a></li>
                <li><a href="/jobs">ㆍ招聘信息</a></li>
            </ul>
        </div>
    </li>
    <li>
        <a href="/contactus" class="@(ViewBag.ActMenu == "contactus" ? "act" : string.Empty)">联系我们</a>
        <div class="menuact"></div>
        <div class="submenubox" style="margin-left:-140px">
            <ul class="navsubmenu">
                <li><a href="/contactus">ㆍ联系方式</a></li>
                <li><a href="/contactus/map">ㆍ地理位置</a></li>
                <li><a href="/contactus/leavemessage">ㆍ客户留言</a></li>
            </ul>
        </div>
    </li>*@
</ul>